package com.tsunami.security.uaa.provider.impl;

import com.tsunami.authority.entity.auth.User;
import com.tsunami.base.R;
import com.tsunami.exception.code.ExceptionCode;
import com.tsunami.security.uaa.provider.AdminProvider;
import org.springframework.stereotype.Component;

/**
 * @Classname UserProviderFallback
 * @Description TODO
 * @Date 2021-11-18 9:50
 * @Created by lx
 */
@Component
public class AdminProviderFallback implements AdminProvider {
    @Override
    public R selectByAccount(String username) {
        return R.error().exCode(ExceptionCode.TIME_OUT);
    }

    @Override
    public R findVisibleResource(Long userId) {
        return R.error().exCode(ExceptionCode.TIME_OUT);
    }

    @Override
    public R findRolesByUser(Long userId) {
        return R.error().exCode(ExceptionCode.TIME_OUT);
    }
}
